package com.aiit.controller.admin;


import com.aiit.service.ReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/export")
public class ReportController {

    @Autowired
    private ReportService reportService;

    /**
     * 导出运营数据报表
     *
     * @param
     */
    @GetMapping("/demo")
    public void export(Long id) {
        System.out.println("开始打印发票");
        reportService.exportBusinessData(id);
    }
}
